package com.tianji.learning.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tianji.learning.domain.po.InteractionQuestion;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 互动提问的问题表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-04-02
 */
public interface InteractionQuestionMapper extends BaseMapper<InteractionQuestion> {


    void updateAnswerTimes(Long questionId);

    @Update("update interaction_question set status = #{student} where id = #{questionId}")
    void updateQuestionStatus(Long questionId, boolean student);
}
